from xml.dom.minidom import *
from sendable import * 

class TitleSender(Sendable):
	def __init__(self, title):
		self.title = title
	def send(self):
		doc = xml.dom.minidom.Document()
		node = doc.createElement("title")
		node.setAttribute("name", self.title.name)
		node.setAttribute("file", self.title.filename)
		node.setAttribute("duration", self.title.duration)
		return node
